package com.csap.framework.oauth2.exception;

import com.csap.framework.oauth2.type.ExceptionType;

/**
 * @Author ycf
 * @Date 2021/8/19 6:24 下午
 * @Version 1.0
 */
public class UnauthorizedUserException extends Oauth2Exception {
    public UnauthorizedUserException(String msg, Throwable t) {
        super(msg, t);
    }

    public UnauthorizedUserException() {
        super(ExceptionType.unauthorized_user.getMessage());
    }

    @Override
    public ExceptionType exceptionType() {
        return ExceptionType.unauthorized_user;
    }
}
